package com.tencent.sr.iris.baisc.saas.export.sdk;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import lombok.Data;

@Data
public class ScrollRequest<T> {
    @Min(
        value = 1L,
        message = "pageNum大于1"
    )
    @NotNull(
        message = "页码不能为空"
    )
    private Integer pageNum;
    @NotNull(
        message = "分页大小不能为空"
    )
    @Min(
        value = 1L,
        message = "分页大小不小于1"
    )
    @Max(
        value = 1000L,
        message = "分页大小不大于1000"
    )
    private Integer pageSize;
    private T queryCriteria;
    private String scrollId;

    public ScrollRequest() {
    }

}